<template>
  <el-row class="tac">
    <el-col :span="24">
      <el-menu
          active-text-color="#f93684"
          background-color="#fff"
          class="el-menu-vertical-demo"
          default-active="2"
          text-color="#000"
          style="margin-bottom: 30px"
      >
        <el-sub-menu index="1">
          <template #title>
            <span>练习室</span>
          </template>
          <router-link to="/trainingroom/training">
            <el-menu-item index="1-1">我的练习室</el-menu-item>
          </router-link>
        </el-sub-menu>
      </el-menu>
      <el-menu
          active-text-color="#f93684"
          background-color="#fff"
          class="el-menu-vertical-demo"
          default-active="2"
          text-color="#000"
      >
        <router-link to="/trainingroom/mediaCach">
          <el-menu-item index="2">缓存</el-menu-item>
        </router-link>
        <el-menu-item index="3">
          <span @click="dialogVisible=true">音视频播放器</span>
        </el-menu-item>
        <router-link to="/trainingroom/collections">
          <el-menu-item index="4">收藏</el-menu-item>
        </router-link>
        <router-link to="/trainingroom/history">
          <el-menu-item index="5">历史</el-menu-item>
        </router-link>

      </el-menu>
    </el-col>
  </el-row>

  <el-dialog v-model="dialogVisible" width="30%" center>
    <span style="padding-left: 40px;">请打开中舞网APP，点击"练习室"-"音频库"中查看。</span
    >
    <template #footer>
      <span class="dialog-footer">
        <el-button color="#f93684" @click="dialogVisible=false"
        >确定</el-button
        >
      </span>
    </template>
  </el-dialog>
</template>

<script lang="ts" setup>
import {ref} from "vue";

const dialogVisible = ref(false)
</script>
